package org.springblade.common.security.service;

import lombok.Getter;
import org.springblade.common.constant.SecurityConstants;
import org.springblade.system.user.entity.UserInfo;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

public class CsjUser extends User {
	@Getter
	private UserInfo userInfo;

	public CsjUser(UserInfo userInfo,String password,Collection<? extends GrantedAuthority> authorities) {
		super(userInfo.getUser().getAccount(), password, authorities);
		this.userInfo = userInfo;
	}
}
